package com.example.hfSystem.entity.pojo;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 汉服资讯表
 * </p>
 * @since 2024-04-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("hf_news")
@ApiModel(value = "HfNews对象", description = "汉服资讯表")
public class HfNews implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("简介")
    @TableField("introduce")
    private String introduce;

    @ApiModelProperty("发布时间")
    @TableField("release_time")
    private Date releaseTime;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("发布人")
    @TableField("issuer")
    private String issuer;

    @ApiModelProperty("封面")
    @TableField("cover")
    private String cover;

    @ApiModelProperty("最近点击时间")
    @TableField("clicktime")
    private Date clicktime;

    @ApiModelProperty("点击次数")
    @TableField("clicknum")
    private Integer clicknum;

    @ApiModelProperty("用户id")
    @TableField("userid")
    private Long userid;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String INTRODUCE = "introduce";

    public static final String RELEASE_TIME = "release_time";

    public static final String CONTENT = "content";

    public static final String ISSUER = "issuer";

    public static final String COVER = "cover";

    public static final String CLICKTIME = "clicktime";

    public static final String CLICKNUM = "clicknum";

    public static final String USERID = "userid";

    public static final String CREATE_TIME = "create_time";

}
